﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yugi.Script;

namespace Yugi.Client.Card
{
    [Serializable]
    public class YNormalCard : YBaseCard
    {
        public int Damage
        {
            get;

            set;

        }

      

        public int Defend
        {
            get;

            set;

        }

        public int Star
        {
            get;

            set;
        }
        #region Script
        public string Script { get; set; }
        
     //   public string Script_Summon { get; set; }

    //    public string Script_Turn { get; set; }

    //    public string Script_Destroy { get; set; }

        public MtrAttribute Attribute
        {
            get;

            set;

        }
        public MtrType Type
        {
            get;
            set;
        }

        public int Level
        {
            get;

            set;

        }
        public bool IsEffect;


   /*     public void Active(IDictionary<string, object> pass_argument,string type)
        {
            PythonEngine engine = PythonEngine.GetInsitance();
            switch (type)
            {
                case "Summon":
                    if (Script_Summon == "") return;

                    if (engine.addSource(Script_Summon))
                    {
                        engine.Excute(pass_argument);
                    }
                    break;
                case "Turn":
                    if (Script_Turn == "") return;

                    if (engine.addSource(Script_Turn))
                    {
                        engine.Excute(pass_argument);
                    }
                    break;
                case "Destroy":
                    if (Script_Destroy == "") return;

                    if (engine.addSource(Script_Destroy))
                    {
                        engine.Excute(pass_argument);
                    }
                    break;
            }
            
        }*/

        #endregion

        
    }
}
